package com.carrie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carrie.model.entity.UserDetails;
import com.carrie.model.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Optional;
@Mapper
public interface UserMapper extends BaseMapper<Users> {
    Optional<Users> selectUserByUsername(@Param("username") String username);
    UserDetails getUserDetailsByLogin(@Param("username") String username);
}
